package com.example.aigc_education.enums;

public enum PlanStageType {
    ENTRY_LEVEL("入门阶段"),
    BASIC_MASTERY("基础巩固"),
    ADVANCED_PROGRESS("进阶提升"),
    PROFESSIONAL_APPLICATION("高级应用"),
    MASTER_LEVEL("专家级别");


    private final String title;

    PlanStageType(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public static PlanStageType fromTitle(String title) {
        for (PlanStageType gradeType : values()) {
            if (gradeType.getTitle().equals(title)) {
                return gradeType;
            }
        }
        throw new IllegalArgumentException("No enum constant with title " + title);
    }
}
